<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>订单快递打印页面 - {$site_name}</title>
<script type="text/javascript" src="{$site_url}/includes/libraries/javascript/jquery.js" charset="utf-8"></script>
<link rel="shortcut icon" href="{$site_url}/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="print"> .NOPRINT{display:none;} </style>  
<style type="text/css">
body{font-size: 12px; font-family:Arial,Helvetica,sans-serif;}
table,td,p{border:0;padding:0; margin:0;}
.content { width:838px; margin:0 auto; overflow:hidden}
.NOPRINT {line-height:160%}
.left{ float:left;} .right{ float:right;}
.print{ margin:5px auto; position:relative;overflow:hidden}
.print input { border:0; font-size:13px; height:18px; line-height:18px}
.absolute { position:absolute}
.blank { height:6px; overflow:hidden}
.head_hui { height:20px; line-height:20px; background:#e1e1e1;overflow:hidden; text-align:center}
.table_css {border:2px #000 solid;border-left:1px #000 solid;border-right:2px #000 solid;border-bottom:1px #000 solid; margin-bottom:15px}
.table_css td{padding:4px;word-wrap:break-word; word-break:break-all;}
.table_css td.td_Css{ border-left:1px #000 solid;border-bottom:1px #000 solid;}
.table_css .font_size {font-size:13px;padding-left:8px; padding-top:6px;}
</style>
</head>
<body>
<div align="center" style="padding:5px;" class="NOPRINT">
<select name="selxi" id="selxi" onChange="Javascript:location.href='index.php?app=kuozhan&act=KdOrderPrint&id={$ordertext}&select='+this.options[this.selectedIndex].value">
<option value="miandan" {if $smarty.get.select eq 'miandan'}selected{/if}>打印_快递单</option>
</select>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT></OBJECT>   
  <input type=button value="直接打印" onclick="javascript:window.print();" class="NOPRINT">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  打印方式：<label><input name="print" type="radio" value="hb" onClick="location.href='index.php?app=kuozhan&act=KdOrderPrint&id={$ordertext}&select={$smarty.get.select}&print=hb'" checked/>合并订单快递打印</label>
  <label><input type="radio"name="print" value="fy" onClick="location.href='index.php?app=kuozhan&act=KdOrderPrint&id={$ordertext}&select={$smarty.get.select}&print=fy'" {if $smarty.get.print eq 'fy'}checked{/if}/>分页订单快递打印</label>  
</div>
<div class="content">
<!--{if $smarty.get.select eq 'zto' }-->
				
<!--{else}-->  <!--==================================================打印电子面单============================================================-->

  <!--{foreach from=$order_info item=info name=v}-->
  <div>
  <table width="100%">
    <tr>
      <td>Shipper's Account No: <font style="font-size:30px">{$info.yundanhao}</font></td>
      <td width="27%" height="50" align="center"><img src="/data/barcode/test.php?codebar=BCGcode128&text={$info.baoguanNo}&BarWidth=2&Height=25"></td>
    </tr>
  </table>
  <div class="blank"></div>
  <table width="100%" cellspacing="0" class="table_css">
    <tr>
      <td class="td_Css" width="33%" align="center">Consignor 寄件人</td>
      <td class="td_Css" width="40%" align="center">Consignee 收件人</td>
      <td rowspan="2" valign="top" class="td_Css" style="padding:0">
      <div class="head_hui">Service Type</div>
      <div class="blank"></div>
      <table width="100%">
        <tr>
          <td align="center" valign="top">Document<br /><input type="checkbox" ></td>
          <td align="center" valign="top">Parcel<br /><input type="checkbox"></td>
          <td align="center" valign="top">Others<br /><input type="checkbox"></td>
        </tr>
      </table>
      </td>
    </tr>
    <tr>
      <td width="33%" height="55" valign="top" class="td_Css">Company Name 公司名称<p class="font_size">{$info.txt_company}</p></td>
      <td width="40%" valign="top" class="td_Css">Company Name 公司名称<p class="font_size">{$info.txtRece_company}</p></td>
      </tr>
    <tr>
      <td width="33%" height="30" valign="top" class="td_Css">Sent By 发件人:<p class="font_size">{$info.txt_name}</p></td>
      <td width="40%" valign="top" class="td_Css">Sent To 收件人:<p class="font_size">{$info.txtRece_name}</p></td>
      <td rowspan="3" valign="top" class="td_Css" style="padding:0">
      <div class="head_hui">Declared Value for Customs</div>
      <p class="font_size" style="font-size:12px;">货物价值（美元/USD）</p>
      <p class="font_size">{$info.SumGoodsWorth}</p>
      <div style="height:20px;"></div>
      <div class="head_hui" style="border-top:1px #000 solid">POSTING DATE</div>
      <p class="font_size" style="font-size:12px;">收寄日期</p>
      <div class="font_size"><?php echo local_date("Y-m-d",time()); ?></div>
      </td>
      </tr>
    <tr>
      <td width="33%" height="58" valign="top" class="td_Css">Address 地址:<p class="font_size">{$info.txt_address}</p></td>
      <td width="40%" valign="top" class="td_Css">Address 地址:<p class="font_size">{$info.txtRece_address}</p></td>
      </tr>
    <tr>
      <td width="33%" height="40" valign="top" class="td_Css">City/State/Country 城市/州/国家:<p class="font_size">{$info.txt_city}&nbsp;&nbsp;{$info.txt_province}&nbsp;&nbsp;{$info.txt_country}</p></td>
      <td width="40%" valign="top" class="td_Css">City/State/Country 城市/州/国家:<p class="font_size">{$info.txtqu}&nbsp;&nbsp;{$info.txtRece_city}&nbsp;&nbsp;{$info.txtRece_province}&nbsp;&nbsp;{$info.txtRece_country}</p></td>
    </tr>
    <tr>
      <td width="33%" height="30" valign="top" class="td_Css">Tel No. 电话号码:<p class="font_size">{$info.txt_mobilephone}</p></td>
      <td width="40%" valign="top" class="td_Css">Tel No. 电话号码:<p class="font_size">{$info.txtRece_mobilephone}</p></td>
      <td rowspan="2" class="td_Css" style="padding:0"><p class="font_size" style="font-size:18px; text-align:center">{$info.zhudanNo}</p></td>
      </tr>
    <tr>
      <td width="33%" height="30" valign="top" class="td_Css">Zip/Post 邮编:<p class="font_size">{$info.txt_postoffice}</p></td>
      <td width="40%" valign="top" class="td_Css">Zip/Post 邮编:<div class="font_size">{$info.txtRece_postoffice}</div></td>
    </tr>
    <tr>
      <td width="33%" height="55" valign="top" class="td_Css">Goods Description 品名:<p class="font_size" style="height:33px;overflow:hidden;width:98%;"><!--{foreach from=$info.goodswupin item=wupin}-->{$wupin.GoodsName}&nbsp;&nbsp;<!--{/foreach}--></p></td>
      <td valign="top" class="td_Css" style="padding:0">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="33%" height="55" valign="top" style="border-right:1px #000 solid">NO. OF PCS 件数:<p class="font_size">{$info.SumGoodsAmount}</p></td>
          <td width="33%" valign="top" style="border-right:1px #000 solid">Weight (KG) 重量:<p class="font_size"></p></td>
          <td width="33%" valign="top">Volume 体积:<p class="font_size"></p></td>
          </tr>
        </table>      
      </td>
      <td rowspan="2" align="center" class="td_Css"><img src="/data/barcode/test.php?codebar=BCGcode39&text={$info.baoguoNo}&BarWidth=1&Height=50"></td>
      </tr>
    <tr>
      <td class="td_Css" colspan="2" style="padding:0">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="33%" valign="top" style="border-right:1px #000 solid">我保证上述向海关申报内容的真实性及本 快件内未夹寄禁寄和危险物品，如有伪报瞒报须承担一切法律责任。</td>
            <td width="33%" valign="top" style="border-right:1px #000 solid">Courier Signature<br />
              速递签收:</td>
            <td width="33%" valign="top">Consignee's Signature<br />
              收件人签收:</td>
            </tr>
          </table>
      </td>
      </tr>
  </table>
  </div>
  <!--{if !$smarty.foreach.v.last}--><!--{if $smarty.get.print eq 'fy' }--><p style='page-break-after:always'/></p><!--{/if}--> <!--{/if}-->
  <!--{foreachelse}-->
  <div style="width:100%; text-align:center; font-size:18px; color:#F00; line-height:250%">没有找到相应的记录信息</div>
  <!--{/foreach}-->
    
<!--{/if}--> 

  <div class="NOPRINT" style="width:100%;margin-top:10px;color:#666;overflow:hidden">
  浏览器阻止此站点以不安全的方式使用ActiveX控件的解决方法。<br />
  1、打开IE选工具/Internet选项/安全 -> 自定义级别 <br />
  2、ActiveX控件自动提示 (选择启用) <br />
  3、对没有标记为安全的ActiveX控件进行初始化并执行脚本 (选择启用或者提示 )<br />
  4、下载未签名的ActiveX控件 (选择 启用)<br /> 
  5、运行ActiveX控件和插件 (选择启用或者提示)
  </div>
</div>
<p class="NOPRINT">&nbsp;</p>
</body>
</html>